package a.f.g.a;

public class ob
  implements nc
{
  public static final o_ b = new o_()
  {
    public double a(double paramAnonymousDouble)
    {
      if (c(paramAnonymousDouble)) {
        return 0.0D;
      }
      return paramAnonymousDouble;
    }
    
    public boolean c(double paramAnonymousDouble)
    {
      if (!xb.r) {}
      return paramAnonymousDouble <= 0.0D;
    }
    
    public String a()
    {
      return "Linear";
    }
  };
  public static final o_ c = new o_()
  {
    public double a(double paramAnonymousDouble)
    {
      if (c(paramAnonymousDouble)) {
        return 0.0D;
      }
      return 1.0D - paramAnonymousDouble;
    }
    
    public boolean c(double paramAnonymousDouble)
    {
      if (!xb.r) {}
      return paramAnonymousDouble >= 1.0D;
    }
    
    public String a()
    {
      return "Linear Neg";
    }
  };
  public static final o_ d = new o_()
  {
    public double a(double paramAnonymousDouble)
    {
      return 1.0D;
    }
    
    public boolean c(double paramAnonymousDouble)
    {
      return false;
    }
    
    public String a()
    {
      return "Constant";
    }
  };
  public static final o_ e = new o_()
  {
    public double a(double paramAnonymousDouble)
    {
      if (c(paramAnonymousDouble)) {
        return 0.0D;
      }
      return paramAnonymousDouble * paramAnonymousDouble;
    }
    
    public boolean c(double paramAnonymousDouble)
    {
      if (!xb.r) {}
      return paramAnonymousDouble <= 0.0D;
    }
    
    public String a()
    {
      return "Quad";
    }
  };
  public static final o_ f = new o_()
  {
    public double a(double paramAnonymousDouble)
    {
      if (c(paramAnonymousDouble)) {
        return 0.0D;
      }
      return (1.0D - paramAnonymousDouble) * (1.0D - paramAnonymousDouble);
    }
    
    public boolean c(double paramAnonymousDouble)
    {
      if (!xb.r) {}
      return paramAnonymousDouble >= 1.0D;
    }
    
    public String a()
    {
      return "Quad Neg";
    }
  };
  public static final o_ g = new o_()
  {
    public double a(double paramAnonymousDouble)
    {
      if (c(paramAnonymousDouble)) {
        return 0.0D;
      }
      return paramAnonymousDouble * paramAnonymousDouble * paramAnonymousDouble;
    }
    
    public boolean c(double paramAnonymousDouble)
    {
      if (!xb.r) {}
      return paramAnonymousDouble <= 0.0D;
    }
    
    public String a()
    {
      return "Cubic";
    }
  };
  public static final o_ h = new o_()
  {
    public double a(double paramAnonymousDouble)
    {
      if (c(paramAnonymousDouble)) {
        return 0.0D;
      }
      return (1.0D - paramAnonymousDouble) * (1.0D - paramAnonymousDouble) * (1.0D - paramAnonymousDouble);
    }
    
    public boolean c(double paramAnonymousDouble)
    {
      if (!xb.r) {}
      return paramAnonymousDouble >= 1.0D;
    }
    
    public String a()
    {
      return "Cubic Neg";
    }
  };
  public static final o_ i = new o_()
  {
    public double a(double paramAnonymousDouble)
    {
      if (c(paramAnonymousDouble)) {
        return 0.0D;
      }
      return Math.sqrt(paramAnonymousDouble);
    }
    
    public boolean c(double paramAnonymousDouble)
    {
      if (!xb.r) {}
      return paramAnonymousDouble <= 0.0D;
    }
    
    public String a()
    {
      return "Sqrt";
    }
  };
  public static final o_ j = new o_()
  {
    public double a(double paramAnonymousDouble)
    {
      if (c(paramAnonymousDouble)) {
        return 0.0D;
      }
      return Math.sqrt(1.0D - paramAnonymousDouble);
    }
    
    public boolean c(double paramAnonymousDouble)
    {
      if (!xb.r) {}
      return paramAnonymousDouble >= 1.0D;
    }
    
    public String a()
    {
      return "Sqrt Neg";
    }
  };
  public static final o_ k = new o_()
  {
    public double a(double paramAnonymousDouble)
    {
      if (c(paramAnonymousDouble)) {
        return 0.0D;
      }
      return 2.0D * paramAnonymousDouble - 1.0D;
    }
    
    public boolean c(double paramAnonymousDouble)
    {
      if (!xb.r) {}
      return paramAnonymousDouble <= 0.5D;
    }
    
    public String a()
    {
      return "Linear 0.5";
    }
  };
  public static final o_ l = new o_()
  {
    public double a(double paramAnonymousDouble)
    {
      if (c(paramAnonymousDouble)) {
        return 0.0D;
      }
      return -2.0D * paramAnonymousDouble + 1.0D;
    }
    
    public boolean c(double paramAnonymousDouble)
    {
      if (!xb.r) {}
      return paramAnonymousDouble >= 0.5D;
    }
    
    public String a()
    {
      return "Linear 0.5 NEG";
    }
  };
  public static final o_ m = new o_()
  {
    public double a(double paramAnonymousDouble)
    {
      if (c(paramAnonymousDouble)) {
        return 0.0D;
      }
      return 4.0D * paramAnonymousDouble - 3.0D;
    }
    
    public boolean c(double paramAnonymousDouble)
    {
      if (!xb.r) {}
      return paramAnonymousDouble <= 0.75D;
    }
    
    public String a()
    {
      return "Linear 0.75";
    }
  };
  public static final o_ n = new o_()
  {
    public double a(double paramAnonymousDouble)
    {
      if (c(paramAnonymousDouble)) {
        return 0.0D;
      }
      return -4.0D * paramAnonymousDouble / 3.0D + 1.0D;
    }
    
    public boolean c(double paramAnonymousDouble)
    {
      if (!xb.r) {}
      return paramAnonymousDouble >= 0.75D;
    }
    
    public String a()
    {
      return "Linear 0.75 NEG";
    }
  };
  public static final o_ o = new o_()
  {
    public double a(double paramAnonymousDouble)
    {
      if (c(paramAnonymousDouble)) {
        return 0.0D;
      }
      return 1.0D - paramAnonymousDouble / 2.0D;
    }
    
    public boolean c(double paramAnonymousDouble)
    {
      if (!xb.r) {}
      return paramAnonymousDouble >= 2.0D;
    }
    
    public String a()
    {
      return "Linear Dec 0.5";
    }
  };
  public static final o_[] p = { d, b, c, i, j, e, f, g, h, k, l, m, n, o };
  private final double q;
  private final double r;
  protected nc s;
  protected o_ t;
  protected o_ u = d;
  private final double v;
  private double w = 1.0D;
  public static int x;
  
  public ob(nc paramnc, o_ paramo_, double paramDouble1, double paramDouble2)
  {
    this.s = paramnc;
    this.t = paramo_;
    this.r = paramDouble1;
    this.q = paramDouble2;
    this.v = (paramDouble2 - paramDouble1);
    if (this.v == 0.0D) {
      throw new IllegalArgumentException("Length must not be 0");
    }
  }
  
  public o_ a()
  {
    return this.u;
  }
  
  public void a(o_ paramo_)
  {
    this.u = paramo_;
  }
  
  public y a(cb paramcb, bb parambb, f paramf)
  {
    if (!xb.r) {
      if (a(parambb)) {
        return paramf;
      }
    }
    f localf = (f)this.s.a(paramcb, parambb, paramf);
    a(localf);
    a(parambb, localf);
    return localf;
  }
  
  private void a(bb parambb, f paramf)
  {
    paramf.f(b(parambb.c()));
  }
  
  private boolean a(bb parambb)
  {
    boolean bool = xb.r;
    if (!bool) {
      if (!this.u.c(parambb.c())) {
        if (bool) {
          break label38;
        }
      }
    }
    label38:
    return this.w == 0.0D;
  }
  
  void a(f paramf)
  {
    boolean bool = xb.r;
    if (!bool) {
      if (this.w == 0.0D)
      {
        paramf.a();
        return;
      }
    }
    double d1 = paramf.c();
    if (!bool) {
      if (d1 == 0.0D) {
        return;
      }
    }
    double d2 = a(d1);
    if (!bool) {
      if (d2 == 0.0D)
      {
        paramf.a();
        return;
      }
    }
    double d3 = d2 * this.w / d1;
    paramf.b(paramf.d() * d3);
    paramf.d(paramf.f() * d3);
    paramf.e(paramf.g() * d3);
  }
  
  double a(double paramDouble)
  {
    return this.t.a((paramDouble - this.r) / this.v);
  }
  
  double b(double paramDouble)
  {
    return this.u.a(paramDouble);
  }
  
  double b()
  {
    return this.q;
  }
  
  public o_ c()
  {
    return this.t;
  }
  
  public double d()
  {
    return this.w;
  }
  
  public void c(double paramDouble)
  {
    this.w = paramDouble;
  }
  
  double e()
  {
    return this.r;
  }
  
  public nc f()
  {
    return this.s;
  }
  
  public String toString()
  {
    return "WeightedCalculator{coreCalculator=" + this.s + ", factor=" + this.w + ", model=" + this.t + ", timeModel=" + this.u + "}";
  }
  
  public static abstract interface o_
  {
    public abstract double a(double paramDouble);
    
    public abstract String a();
    
    public abstract boolean c(double paramDouble);
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.f.g.a.ob
 * JD-Core Version:    0.7.0.1
 */